package com.heima.wemedia.dao;


import com.github.pagehelper.Page;
import com.heima.model.common.enums.WmMaterial;

import java.util.List;

/**
 * 自媒体素材表(WmMaterial)表数据库访问层
 *
 * @author makejava
 * @since 2022-04-10 17:49:41
 */
public interface WmMaterialDao {

    WmMaterial queryById(int id);
    void insert(WmMaterial wmMaterial);
    Page<WmMaterial> queryAll(WmMaterial wm);
    int deleteById(int id);
    void isCollection(int id);
    void cancelCollect(int id);

    List<WmMaterial> queryByUrls(List<String> images);
}

